package com.vincent.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("employee")
public class Employee implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    //'性别(1:男,2:女)
    private Integer gender;

    private Date birthday;

    //身份证
    private String idCard;

    private String email;

    private String phone;

    @TableField(value = "department_id")
    private Integer departmentId;

    private Date created;

}
